package fgl.common.framework.dubbo.client;

import com.alibaba.dubbo.config.annotation.Reference;
import fgl.common.framework.dubbo.server.inter.TestInter;
import org.springframework.stereotype.Service;

/**
 * @author fuguangli
 * @description 前沿类
 * @Create date:    2017/7/4
 */
//@Service
public class TestClient implements TestClientInter {
    {
        /*用作调试类的创建时间*/
        System.out.println("");
    }

    /**
     * * @Reference和@Service本来是两个项目中的，在同一个项目的时候，必须得是@Service先扫描完
     */
    @Reference(version = "1.0.0", registry = {"registryConfig"},timeout = 3000)
    private TestInter testInter;

    public String hello() {
        return testInter.hello();
    }


    public static void main(String[] args) {

    }
}
